package com.aaa.hospital.controller;

import com.aaa.hospital.pojo.query.LogQuery;
import com.aaa.hospital.result.AjaxResult;
import com.aaa.hospital.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: danghui
 * @Date: 2022/2/14 14:59
 * @Description: TODO
 */
@RestController
@RequestMapping("log")
public class LogController {
    @Autowired
    private LogService logService;

    @RequestMapping("query")
    public AjaxResult query(LogQuery query){
        return logService.listAllLog(query);
    }
}
